package com.xbongbong.pro.statistic.pojo;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 系统指标的编辑和保存
 * @author 梁鲁江
 * @version v1.0
 * @date 2019/1/21 10:09
 * @since v1.0
 */
@Setter
@Getter
@ToString
public class ChartSystemValuePojo extends BaseDTO{
    private static final long serialVersionUID = 8664181486583709285L;
    /**
     * chartId不为空则为编辑全局查询条件，否则是新加了全局查询条件
     */
    @NotNull(message = "{pojo.msg.chartSystemValueP.id.NotNull}")
    private Long id;
    /**
     * 报表名称
     */
    @NotNull(message = "{pojo.msg.chartSystemValueP.name.NotNull}")
    @Size(max=20,   message ="{pojo.msg.chartSystemValueP.name.Size}" )
    private String name;
    /**
     * 指标图标
     */
    @NotNull(message = "{pojo.msg.chartSystemValueP.icon.NotNull}")
    private String icon;
    /**
     * 颜色，16进制色，如 #FF0000
     */
    @NotNull(message = "{pojo.msg.chartSystemValueP.color.NotNull}")
    private String color;
}
